//
//  TPBaseNetModel.h
//  CloudAtCostPanel
//
//  Created by leonardo on 2017/2/4.
//  Copyright © 2017年 tanpengsccd. All rights reserved.
//
#import <YYModel.h>
#import <Foundation/Foundation.h>

//typedef NS_ENUM(NSUInteger , status) {
//    Sucess = 1,
//};

//@interface URLPath : NSString
//
//@end

typedef  NSString TPUrlPath;//

typedef NS_ENUM(NSUInteger , HttpMethod) {
    HttpMethod_GET,
    HttpMethod_POST,
}; /**> HTTP Method */

//网络请求基类
//path + query
@interface TPBaseNetModel_req : NSObject
PRO_S TPUrlPath * path;/**> 路径 */
PRO_A HttpMethod  httpMethod; /**> 具体 HTTP RESTful请求方式 */
PRO_S NSString * key;
PRO_S NSString * login;
@end

//网络响应基类
@interface TPBaseNetModel_res : NSObject
PRO_S NSString * status;
PRO_A NSInteger  time;
PRO_A NSInteger  id;
//操作某个VPS（可选）
PRO_S NSString *api;
PRO_S NSString *result;
PRO_S NSString *serverid;

//错误 （可选）
PRO_A NSInteger error;
PRO_S NSString * error_description;
@end
